package com.worthtech.billportal.bean;

/**
 * PosTradeCodeId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class PosTradeCodeId implements java.io.Serializable {

	// Fields

	private String msgtype;
	private String process;

	// Constructors

	/** default constructor */
	public PosTradeCodeId() {
	}

	/** full constructor */
	public PosTradeCodeId(String msgtype, String process) {
		this.msgtype = msgtype;
		this.process = process;
	}

	// Property accessors

	public String getMsgtype() {
		return this.msgtype;
	}

	public void setMsgtype(String msgtype) {
		this.msgtype = msgtype;
	}

	public String getProcess() {
		return this.process;
	}

	public void setProcess(String process) {
		this.process = process;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PosTradeCodeId))
			return false;
		PosTradeCodeId castOther = (PosTradeCodeId) other;

		return ((this.getMsgtype() == castOther.getMsgtype()) || (this
				.getMsgtype() != null
				&& castOther.getMsgtype() != null && this.getMsgtype().equals(
				castOther.getMsgtype())))
				&& ((this.getProcess() == castOther.getProcess()) || (this
						.getProcess() != null
						&& castOther.getProcess() != null && this.getProcess()
						.equals(castOther.getProcess())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMsgtype() == null ? 0 : this.getMsgtype().hashCode());
		result = 37 * result
				+ (getProcess() == null ? 0 : this.getProcess().hashCode());
		return result;
	}

}